package com.lottery.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lottery.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
* <p>
    * 二次评论信息表
    * </p>
*
* @author jobob
* @since 2019-11-01
*/
    @Data
    @Accessors(chain = true)
    @ApiModel(value="TbCommentSubInfo对象", description="二次评论信息表")
    @TableName("tb_comment_sub_info")
    public class CommentSubInfo {

    private static final long serialVersionUID = 1L;

    private LocalDateTime createTime;

            @ApiModelProperty(value = "顶层评论Id")
    private Long topComment;

            @ApiModelProperty(value = "回复人id")
    private Long replyId;

            @ApiModelProperty(value = "回复内容")
    private String replyComment;

            @ApiModelProperty(value = "回复人昵称")
    private String replyName;

    @ApiModelProperty(value = "额外回复人id")
    private Long extraReplyId;


    @ApiModelProperty(value = "额外回复人昵称")
    private String extraReplyName;

    public CommentSubInfo() {
    }

    public CommentSubInfo( Long topComment, Long replyId, String replyName, String replyComment, Long extraReplyId, String extraReplyName) {
        this.topComment = topComment;
        this.replyId = replyId;
        this.replyComment = replyComment;
        this.replyName = replyName;
        this.extraReplyId = extraReplyId;
        this.extraReplyName = extraReplyName;
    }
}
